package com.ltc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class SelfIntroduceControler {
    @RequestMapping("/demo01")
        public String demo01() {
        return "index";
    }

    @RequestMapping("/demo02")
    public ModelAndView demo02(ModelAndView mv) {
        mv.addObject("msg", "林天赐大帅哥");
        return mv;
    }

    @RequestMapping("/demo03")
    public String demo03() {
        return "index";
    }

    @RequestMapping("/demo04")
    public String demo04() {
        return "index";
    }
}
